//
//  BleNameCheck.m
//  INMOTION_CUSTOM
//
//  Created by JC on 2024/4/17.
//  Copyright © 2024 cjg. All rights reserved.
//

#import "BleNameCheck.h"

@implementation BleNameCheck

/// 判断是否以L9开头
/// 新增S1车型 —2022.3.25
+(BOOL) isSupported:(NSString *) peripheralName {
    NSArray *suppotedVehicles = @[@"L9", @"S1", @"S1", @"C1 Pro-", @"C1Pro-", @"C1 Pro24-", @"C1Pro24-", @"Air Pro-", @"AirPro-", @"C1-", @"C124-", @"Air-", @"LE1", @"LE124", @"Climber", @"LE124", @"LE124", @"LE124", @"LE124", @"LN", @"E20"];
    BOOL isContain = NO;
    for (int i = 0; i < suppotedVehicles.count; i++) {
        if ([peripheralName hasPrefix: suppotedVehicles[i]]) {
            isContain = YES;
        }
    }
    return isContain;
}

@end
